home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 144_01 / batch.hlp < prev    next >
Text File  |  1985-08-19  |  3KB  |  55 lines

  1. **********************************************************************
  2. *                           BATCH                                    *
  3. **********************************************************************
  4. *                  COPYRIGHT 1983 EUGENE H. MALLORY                  *
  5. **********************************************************************
  6. PROGRAM:
  7.     BATCH is intended as a replacement program for SUBMIT.COM provided
  8.     with CP/M by Digital Research Corporation.  It uses files with the 
  9.     tags .BAT rather than .SUB.
  10. USAGE:
  11.     BATCH [<fid] [arg1] [arg2] ... [arg9]
  12.     BATCH fname [arg1] [arg2] ... [arg9]
  13.     BATCH / [arg1] [arg2] ... [arg9]
  14. FUNCTION:
  15.     BATCH creates A:$$$.SUB which is used by CP/M as a command
  16.     stream.  It has the following features.
  17.  
  18.         1) Null input lines are properly interpreted; they cause
  19.        the creation of a zero-length line in $$$.SUB.
  20.     2) BATCH jobs may be nested to any level.
  21.     3) BATCH with no arguments or file specification will 
  22.        supply a menu of available .BAT files on the current 
  23.        disk and the A: disk.
  24.     4) An interactive mode (/ form of command) allows command 
  25.            lines to be entered directly.
  26.     5) A stream of batch commands may be supplied from a
  27.        pipe from the Van Nuys Bridge Toolkit or from a file
  28.        via redirection ( ... |BATCH ...   or BATCH <file.bat ...)
  29.        Argument substitution may still be done and in the latter 
  30.        case, other tags than .BAT may be used.
  31.     6) Lines beginning with a "*" are treated as comments.
  32.     7) The parameter $0 gives the batch file name.
  33.     8) The parameter $# gives the number of args including
  34.        the file name. (i.e. BATCH ECHO, where ECHO.BAT is
  35.        ECHO $#, gives ECHO 1)
  36.     9) The parameter $* gives the list of all arguments.
  37.        10) BATCH commands may be nested indefinitely in .BAT files.
  38.        11) Typing BATCH with no arguments will give a menu of available 
  39.            .BAT files on both the current disk and the A: disk.
  40.        12) Interactive mode may be aborted by typing control-C as the 
  41.            first character of a line.  Also, all normal CP/M editing 
  42.            characters are available.
  43.        13) A $ may be entered by using two $'s together, or a $ followed 
  44.            by a non numeric character.
  45.        14) BATCH works properly when invoked from other than the A: 
  46.            disk.
  47.        15) Both the current disk and then the A: disk are searched for
  48.            the .BAT file.
  49.        16) XSUB works with BATCH just as it does with SUBMIT.
  50.        17) Control characters may be entered by preceding a alphabetic
  51.            character with a ^.
  52.  
  53. SEE ALSO:
  54.     IF and ENDIF        
  55.